package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.method.MethodComponent;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IMethodComponentDao {
	public void save(MethodComponent component);

	public void update(MethodComponent component);

	public MethodComponent queryById(long id);

	public List<MethodComponent> queryAll();
	
	public List<MethodComponent> searchComponentByText(String text);
	
	public List<MethodComponent> queryByName(String name);

	public PageBean<MethodComponent> queryByPageNum(int pageNo)
			throws DBException;

	public MethodComponent queryByUri(String uri);
}
